﻿{include file="public/header" /}
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<style>
	.am-dropdown{
		width: 100%;
		margin-left: 30px;
		margin-bottom: 10px;
	}
	.am-dropdown div{
		color: #000;
	}
</style>
<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}" style="overflow: hidden">
	<div class="panel admin-panel" style="background: #fff">
		<br>
		<script>
			//city canshu
            var pid='{$data.pid}';
            var cid='{$data.cid}';
            var aid='{$data.aid}';
			var selectc=true;
			var selecta=true;
		</script>
		<div class="am-dropdown">
			<div class="label">
				<label for="name">{:lang('currency')['city']}</label>
			</div>
				<div class="field">
				{include file="public/city" /}
				</div>
		</div>
        <div class="am-dropdown">
			<div class="label">
				<label for="name">{:lang('label')['name']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="name" name="true_name" value="{$data.true_name}" size="80" placeholder="{:lang('label')['name']}" />
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label for="phone">{:lang('label')['phone']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="phone" name="phone" value="{$data.phone}" size="80" placeholder="{:lang('label')['phone']}" required />
			</div>
		</div>
		
		<div class="am-dropdown">
		<div class="input-inline clearfix">
			<div class="label">
				<label for="headimg">{:lang('label')['headimg']}</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="headimg" name="true_head" value="{$data.true_head}" size="65" placeholder="{:lang('label')['headimg']}" />
				<span class="addbtn"><button type="button" data-id="headimg" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
		</div>
        <div class="am-dropdown">
			<div class="label">
				<label>服务费抽成</label>
			</div>
			<div class="field">
				<input type="number" max="100" min="1" class="input input-auto" id="express_cut" name="express_cut" value="{$data.express_cut}" style="width: 100px" placeholder="抽成" required/> %
			</div>
		</div><div class="am-dropdown">
			<div class="label">
				<label>小费抽成</label>
			</div>
			<div class="field">
				<input type="number" max="100" min="1" class="input input-auto" id="tip_cut" name="tip_cut" value="{$data.tip_cut}" style="width: 100px" placeholder="抽成" required/> %
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>性别</label>
			</div>
			<div class="field">
				<div class="button-small">
					<label class="button {if !$data.sex || $data.sex == 0}active{/if}">
						<input name="sex" value="0" {if !$data.sex || $data.sex == 0}checked="checked"{/if} type="radio">女
					</label>
					<label class="button {if $data.sex == 1}active{/if}">
						<input name="sex" value="1" {if $data.sex == 1}checked="checked"{/if} type="radio">男
					</label>
					<label class="button {if $data.sex == 2}active{/if}">
						<input name="sex" value="2" {if $data.sex == 2}checked="checked"{/if} type="radio">保密
					</label>
				</div>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="button-small">
					<label class="button {if $data.status == "1"}active{/if}">
					<input name="status" value="1" {if $data.status == "1"}checked="checked"{/if} type="radio">{:lang('currency')['status_1']}</label>
					<label class="button {if $data.status == "0" || !$data.status}active{/if}">
					<input name="status" value="0" {if $data.status == "0" || !$data.status}checked="checked"{/if} type="radio">{:lang('currency')['status_2']}</label>
				</div>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>职业类型</label>
			</div>
			<div class="field">
				<div class="button-small">
					{foreach $express_type_arr as $k => $v}
					<label class="button {if $data.express_type == $v.id}active{/if}">
						<input name="express_type" value="{$v.id}" {if $data.express_type == $v.id}checked="checked"{/if} type="radio">
						{$v.name}
					</label>
					{/foreach}
                                       [优先选酒店]
				</div>
			</div>
		</div>
                <div class="am-dropdown">
			<div class="label">
				<label for="idcard">{:lang('label')['idcard']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="idcard" name="idcard" value="{$data.idcard}" size="80" placeholder="{:lang('label')['idcard']}" required />
			</div>
		</div>
		<div class="am-dropdown">
			<div class="input-inline clearfix">
				<div class="label">
					<label for="idcardimg">{:lang('label')['idcardimg']}</label>
				</div>
				<div class="field">
					<input type="text" readonly class="input input-auto" id="idcardimg" name="idcard_front" value="{$data.idcard_front}" size="65" placeholder="{:lang('label')['idcardimg']}" required />
					<span class="addbtn"><button type="button" data-id="idcardimg" class="button upload">{:lang('form')['file']}</button></span>
					<br/>
					<br/>
					<p><img height=100px src="{$data.idcard_front}"/></p>
				</div>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label for="idcard">支付宝帐号</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="bank_card" name="ali_number" value="{$data.ali_number}" size="80" placeholder="银行卡号" required />
			</div>
		</div>
               <div class="am-dropdown">
			<div class="label">
			      <label for="idcard">酒店地址</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="bank_card" name="hotel_address" value="{$data.hotel_address}" size="80" placeholder="酒店地址" required />
			</div>
		</div>
		<div class="form-button">
			<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
		</div>
		<br/>
		</div>
	</form>
	<script>
		$("[name='status']").click(function(){
			var status = $("[name='status']:checked").val();
			if(status=='4'){
				$("#refuse").removeClass('hidden');
			}else{
				$("#refuse").addClass('hidden');
			}
		});
		var um = UM.getEditor('myEditor');
		
	</script>
{include file="public/footer" /}